import request from '@/util/request'

export function listExtendTableData(keyName, data) {
  return request({
    url: `/extend/table/data/${keyName}/list`,
    method: 'post',
    data
  })
}

export function insertExtendTableData(keyName, data) {
  return request({
    url: `/extend/table/data/${keyName}/insert`,
    method: 'post',
    data
  })
}

export function updateExtendTableData(keyName, data) {
  return request({
    url: `/extend/table/data/${keyName}/update`,
    method: 'post',
    data
  })
}

export function deleteExtendTableData(keyName, data) {
  return request({
    url: `/extend/table/data/${keyName}/delete`,
    method: 'post',
    data
  })
}

